package org.fengling.readingplatform.pay.template;

import com.alipay.api.AlipayApiException;
import org.springframework.beans.factory.InitializingBean;

public abstract class AbstractPaymentHandler implements InitializingBean {

    // 支付宝支付方法
    public String alipayMethod(String name) throws AlipayApiException {
        throw new UnsupportedOperationException();
    }

    // 微信支付方式
    public String wxpayMethod(String name){
        throw new UnsupportedOperationException();
    }

    public String getPayment(String orderNo) throws AlipayApiException {
        throw new UnsupportedOperationException();
    }

    public abstract String invokeCommon();

}
